how to add one to a variable in python

33

x = 20
x = x+1
print(x)

or 

x = 20
x+=1
print(x)

Comments

Submit
0 Comments